Configure iSCSI Initiator
2013/05/07 |
Configure iSCSI Initiator. This example is based on the environment below.
nas01.srv.world [10.0.0.50] - iSCSI Target client.srv.world [10.0.0.60] - iSCSI Initiator
|
|
[1] | Configure iSCSI Initiator |
root@client:~#
aptitude -y install open-iscsi
root@client:~#
vi /etc/iscsi/iscsid.conf # line 53: uncomment node.session.auth.authmethod = CHAP # line 57,58: uncomment and set username and password which set on iSCSI Target node.session.auth.username = username node.session.auth.password = password
root@client:~#
/etc/init.d/open-iscsi restart # discover target root@client:~# iscsiadm -m discovery -t sendtargets -p 10.0.0.50 10.0.0.50:3260,1 iqn.2013-05.world.srv:target00 # confirm status after discovery root@client:~# iscsiadm -m node -o show
# BEGIN RECORD 2.0-873
node.name = iqn.2013-05.world.srv:target00 node.tpgt = 1 node.startup = manual node.leading_login = No ..... ..... # login to target root@client:~# iscsiadm -m node --login
Logging in to [iface: default, target: iqn.2013-05.world.srv:target00, portal: 10.0.0.50,3260] (multiple)
Login to [iface: default, target: iqn.2013-05.world.srv:target00, portal: 10.0.0.50,3260] successful. # confirm session root@client:~# iscsiadm -m session -o show
tcp: [1] 10.0.0.50:3260,1 iqn.2013-05.world.srv:target00
# confirm partitions root@client:~# cat /proc/partitions major minor #blocks name
80 31457280 sda 8 1 512000 sda1 8 2 30944256 sda2 253 0 20971520 dm-0 253 1 6160384 dm-1 253 2 3809280 dm-2 8 16 104857600 sdb # added new device provided from target |
[2] |
Complete to configure iSCSI Initiator. It's possible to use the provided device from iSCSI Target as a local device.
|